FROM registry.cn-beijing.aliyuncs.com/rinlink/openjdk:8
ENV JVM_OPTS="-Xmx1g -Xms256M" \ 
	JAVA_ARGS="" \
	JAVA_APP_PATHNAME="/app.jar"
RUN wget https://arthas.aliyun.com/arthas-boot.jar
ADD ./app.jar /app.jar
CMD sh -c "java $JVM_OPTS -jar ${JAVA_APP_PATHNAME} $JAVA_ARGS"
